package cn.iocoder.yudao.module.pmp.api;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;

import cn.iocoder.yudao.module.pmp.api.dto.ProjectDTO;
import cn.iocoder.yudao.module.pmp.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = ApiConstants.NAME) // TODO 芋艿：fallbackFactory =
@Tag(name = "RPC 服务 - 项目")
public interface PmpApi {

    String PREFIX = ApiConstants.PREFIX + "/get";

    @GetMapping(PREFIX + "/get")
    @Operation(summary = "获得项目信息")
    @Parameter(name = "id", description = "项目id", example = "1024", required = true)
    ProjectDTO getProject(@RequestParam("id") Long id);


}
